package com.xuan.webfinally.entity;

import lombok.Data;
import java.util.List;

@Data
public class ApiData {

    private List<Item> data;        // 数据项列表
    private Integer total;          // 总数据量
    private Statistics statistics;  // 统计信息

    // Getters 和 Setters
    public List<Item> getData() {
        return data;
    }

    public void setData(List<Item> data) {
        this.data = data;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Statistics getStatistics() {
        return statistics;
    }

    public void setStatistics(Statistics statistics) {
        this.statistics = statistics;
    }

    // 数据项 Item 类
    @Data
    public static class Item {
        private String xzqy;        // 行政区
        private Integer cdsl;       // 测点数量
        private Integer lxcd;       // 离线测点
        private Integer yjcd;       // 预警测点
        private String slopeName;   // 边坡名称
        private String status;      // 状态

        // Getters 和 Setters
        public String getXzqy() {
            return xzqy;
        }

        public void setXzqy(String xzqy) {
            this.xzqy = xzqy;
        }

        public Integer getCdsl() {
            return cdsl;
        }

        public void setCdsl(Integer cdsl) {
            this.cdsl = cdsl;
        }

        public Integer getLxcd() {
            return lxcd;
        }

        public void setLxcd(Integer lxcd) {
            this.lxcd = lxcd;
        }

        public Integer getYjcd() {
            return yjcd;
        }

        public void setYjcd(Integer yjcd) {
            this.yjcd = yjcd;
        }

        public String getSlopeName() {
            return slopeName;
        }

        public void setSlopeName(String projectName) {
            this.slopeName = projectName;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }
    }

    // 统计信息 Statistics 类
    @Data
    public static class Statistics {
        private Integer normal;     // 正常项目数量
        private Integer abnormal;   // 异常项目数量

        // Getters 和 Setters
        public Integer getNormal() {
            return normal;
        }

        public void setNormal(Integer normal) {
            this.normal = normal;
        }

        public Integer getAbnormal() {
            return abnormal;
        }

        public void setAbnormal(Integer abnormal) {
            this.abnormal = abnormal;
        }
    }
}
